﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Security.Principal;
using System.Web;

namespace MyWebApiTest.Models
{
    public class UserBaseModel
    {
        [Required]
        public string UserName { get; set; }
        public Guid UserId { get; set; }
        public int RoleId { get; set; }
    }

    public class UserModel : UserBaseModel, IIdentity
    {
        [Required]
        [StringLength(10, MinimumLength = 6)]
        public string password { get; set; } 

        public string Name { get; }

        public string AuthenticationType {get;}

        public bool IsAuthenticated { get; }

        
    }

    
}